package com.datastructure.test.dynamic.minofjumpingsteps;

public class MinOfJumpingSteps {

    public static void main(String[] args) {
        MinOfJumpingSteps minOfJumpingSteps = new MinOfJumpingSteps();
        int i = minOfJumpingSteps.jumpFloor(2);
        System.out.println(i);
    }

    public int jumpFloor(int target) {
        if (target<=1) return 1;
        return jumpFloor(target-1)+jumpFloor(target-2);
    }
}
